package com.robaone.gwt.hierarcialdb.client;

import java.util.HashMap;
import java.util.Vector;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface HierarcialDBServiceAsync {
		void getMenuItems(AsyncCallback<String[]> asyncCallback);

		void getFolderContentsbyPath(String current_path,
				AsyncCallback<Vector<HashMap<String,String>>> asyncCallback);

		void getFolderContentsbyId(String id,
				AsyncCallback<Vector<HashMap<String,String>>> asyncCallback);

		void getFileContentsbyId(String id,
				AsyncCallback<Vector<HashMap<String, String>>> asyncCallback);

		void setFileContents(String text, String string,
				AsyncCallback<HashMap<String, String>> asyncCallback);

}
